<%@ page import="com.xugou.pojo.Dept" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="ftm" uri="http://java.sun.com/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>订单信息</title>
    <!--引入bootStrap-->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
    <div class="panel panel-primary">                      <!--物品信息和服务信息填写-->
        <div class="panel-heading">
            <h3 class="panel-title"><span class="glyphicon glyphicon-th-list"></span>  所有订单     【订单总数：${getOrderNums}】</h3>
        </div>

        <table class="table table-bordered">
            <thead>
            <tr>
                <th>订单编号</th>
                <th>发送人姓名</th>
                <th>发送人地址</th>
                <th>发送人电话</th>
                <th>运输方式</th>
                <th>预发时间</th>
                <th>预到达时间</th>
                <th>订单生产时间</th>
                <th>是否发出</th>
                <th>是否到达</th>
                <th>收货人姓名</th>
                <th>收货人电话</th>
                <th>目的地</th>
                <th>货物名称</th>
                <th>货物数量</th>
                <th>总费用</th>
                <th>备注</th>
                <th>操作</th>
            </tr>
            </thead>

            <tbody>
            <c:forEach var="t" items="${orderlist}">
                <tr>
                    <td>${t.orderId}</td>
                    <td>${t.client.clientName}</td>
                    <td>${t.client.clientAddress}</td>
                    <td>${t.client.clientTel}</td>
                    <td>${t.trideType}</td>
                    <td>${t.preStartTime}</td>
                    <td>${t.preArriveTime}</td>
                    <td>${t.orderProduceTime}</td>
                    <td>${t.orderIssend}</td>
                    <td>${t.orderReceive}</td>
                    <td>${t.consigneeName}</td>
                    <td>${t.consigneeTel}</td>
                    <td>${t.destination}</td>
                    <td>${t.goodsName}</td>
                    <td>${t.goodsNums}</td>
                    <td>${t.cost.carryMoney+t.cost.storageMoney+t.cost.transportMoney}</td>
                    <td>${t.remark}</td>
                    <td>
                        <a href="${pageContext.request.contextPath}/order/delOrder/${t.orderId}">删除</a>
                        <a href="${pageContext.request.contextPath}/order/toUpdateOrder/${t.orderId}">修改</a>

                    </td>
                </tr>

            </c:forEach>
            </tbody>
        </table>


    </div>




</div>

</body>
</html>

